import { Key } from 'react'
import { $put } from '@js/request'

// 案件导入请求
export async function caseInputRequest (performanceid: string, caseids: Key[], types: string[]): Promise<void> {
  const data: { [k: string]: any } = {
    performanceid,
    caseids
  }
  types.forEach(t => {
    data[t] = 1
  })
  const res = await $put('/api/commission/performance_case/save_list', data)
  return res.data
}
